let person = [
    {
        no: '123456',
        name: '小明',
        age: 18,
        hobby: ['乒乓球', '羽毛球', '篮球']
    },
    {
        no: '654321',
        name: '小红',
        age: 20,
        hobby: ['羽毛球', '跳绳']
    },
    {
        no: '1234567',
        name: '小军',
        age: 12,
        hobby: ['踢毽子']
    },
    {
        no: '7654321',
        name: '小张',
        age: 22,
        hobby: ['足球']
    }
]

//需求,我要123456这个号码的hobby取出来
let newArray = []
newArray = person.filter((item) => {
    if (item.no == '123456') {
        return item
    }
})
console.log(newArray[0].hobby)  //[ '乒乓球', '羽毛球', '篮球' ]

let newArray1 = []
newArray1 = person.map((item) => item.hobby)
console.log(newArray1)